package net.wanho.systemSettings.po;

import java.util.Date;
import java.util.List;

public class Menu {
    private Integer menuId ;
    private String menuName ;
    private String menuUrl ;
    private String pictures ;
    private String status ;
    private Date createTime ;
    private Date updateTime ;
    private Integer parentMenuId ;
    //直接上级菜单  ManyToOne
    private Menu parentMenu ;
    //直接所有下级菜单  OneToMany
    private List<Menu> childrenMenuList ;

    public Menu() {
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getPictures() {
        return pictures;
    }

    public void setPictures(String pictures) {
        this.pictures = pictures;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getParentMenuId() {
        return parentMenuId;
    }

    public void setParentMenuId(Integer parentMenuId) {
        this.parentMenuId = parentMenuId;
    }

    public Menu getParentMenu() {
        return parentMenu;
    }

    public void setParentMenu(Menu parentMenu) {
        this.parentMenu = parentMenu;
    }

    public List<Menu> getChildrenMenuList() {
        return childrenMenuList;
    }

    public void setChildrenMenuList(List<Menu> childrenMenuList) {
        this.childrenMenuList = childrenMenuList;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", pictures='" + pictures + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", parentMenuId=" + parentMenuId +
                ", parentMenu=" + parentMenu +
                ", childrenMenuList=" + childrenMenuList +
                '}';
    }
}
